<?php
	$query = "SELECT module_filesystem_name FROM kse_modules WHERE module_locked=0 AND module_slvl>=". $_SESSION["slvl"]; 
	$result = mysql_query($query);
	
	while($row = mysql_fetch_array($result)){
		if(file_exists(real_path ."kse". DIRSEP ."modules". DIRSEP . $row["module_filesystem_name"] . DIRSEP ."menu.php")){
			echo "<div id=\"". $row["module_filesystem_name"] ."\"><h3>". $row["module_filesystem_name"] ."</h3>";
			include_once(real_path ."kse". DIRSEP ."modules". DIRSEP . $row["module_filesystem_name"] . DIRSEP ."menu.php");
			echo "</div>";
		}
	}
?>